#include "stdafx.h"
#include "dialogue_layer.h"
#include "tiles_pool.h"
#include "game_engine/director.h"

extern HGE* hge;

CDialogueClayer::CDialogueClayer()
{
    m_bgSprite = tiles_pool::Instance().get(10);
}

CDialogueClayer::~CDialogueClayer()
{

}

void CDialogueClayer::Render()
{
    m_bgSprite->Render(0.0f, 0.0f);
}

void CDialogueClayer::Update()
{
    if (hge->Input_GetKeyState(HGEK_ENTER))
    {
        CDirector::Instance().EndScene();
    }
}